package com.dalston.controller;

import com.dalston.util.CommonResult;
import com.dalston.vo.UserVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.jws.soap.SOAPBinding;

@RestController("/user")
public class UserController {

    @GetMapping()
    public CommonResult<UserVo> User() {
        UserVo userVo = new UserVo();
        userVo.setId(1);
        userVo.setName("pei");
        userVo.setPhoneNumber("123123124123123");
        return CommonResult.success(userVo);
    }
}
